import React, { useEffect } from 'react'
import { Spin } from 'antd';

import styles from './index.module.css'

function PageLoading() {

    //[]空数组相当于componentDidMount
    useEffect(() => {
        //返回的函数相当于unmountComponentAtNode
        return () => {

        }
    }, []);

    return (
        <div className={styles.root}>
            <Spin tip="加载中..." size="large" ><div className={styles.tip}></div> </Spin>
        </div>
    )
}


export default PageLoading

